<%--
    Document   : show
    Created on : Jun 8, 2012, 11:02:57 AM
    Author     : ThuanPQ
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Result Page</title>
    </head>
    <body>
        <c:set var="result" value="${requestScope.INFO}"/>
        <c:if test="${not empty result}">
            <table border="1">
                <thead>
                    <tr>
                        <th>Album Name</th>
                        <th>Album ID</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${result}" var="album">
                        <tr>
                            <td><c:out value="${album.name}"/></td>
                            <td><c:out value="${album.albumId}"/></td>
                        </tr>                        
                    </c:forEach>

                </tbody>
            </table>
        </c:if>
    </body>
</html>
